<#assign classNameLower = ClassName ? uncap_first>
import http from '@/utils/Httprequest';

export default {
	save (data) {
		return http({
			url : '/${classNameLower}',
			method:'post',
			data
		});
	},
	update (data) {
		return http({
			url : '/${classNameLower}',
			method:'put',
			data
		});
	},
	delete (id) {
		return http({
			url : '/${classNameLower}/'+id,
			method:'delete',
			data
		});
	},
	findById (id) {
		return http({
			url : '/${classNameLower}/'+id,
			method:'get',
			params
		});
	},
	findAll () {
		return http({
			url : '/${classNameLower}',
			method:'get',
			params
		});
	},
};
